<!DOCTYPE html>
<html>
<head>
    <title>Tina</title>
    <meta charset="utf-8">
    <link href="/static/res/login/css/style.css" rel='stylesheet' type='text/css'/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="/static/res/image/logo/120.png">
    <link rel="stylesheet" type="text/css" href="/static/res/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="/static/res/hint/css/bootstrap.css">
    <link rel="stylesheet" href="/static/res/hint/css/message.css">
    <style type="text/css">
        .layui-input-block {
            margin-left: 64px;
            min-height: 37px;
        }

        .layui-form-pane .layui-input-block {
            margin-left: 64px;
            left: -1px;
        }
        .layui-form-pane .layui-form-label {
            background-color: #fff4fb;
            width: 64px;
            padding: 10px 15px;
            height: 42px;
        }
    </style>
    <script>
        if(window.top!==window.self){
            alert('未登录或登录超时。请重新登录');
            window.top.location=window.location
        };

    </script>
</head>
<body>
<!-----start-main---->
<div class="main">
    <div class="login-form">
        <h1>
            <img src="/static/res/image/logo/80.png" alt="" class="imgLogo"/>
        </h1>
        <div class="layui-form layui-form-pane" style="padding: 5%">

            <div class="layui-form-item">
                <label class="layui-form-label labelDebug layui-icon layui-icon-username"></label>
                <div class="layui-input-block">
                    <input type="text" class="layui-input" style="height: 42px" name="userName" value="Tina" placeholder="用户名"
                           autocomplete="off">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label labelDebug layui-icon layui-icon-password"
                    ></label>
                <div class="layui-input-block">
                    <input type="password" value="tina" style="height: 42px" class="layui-input" name="userPassword" placeholder="密码">
                </div>
            </div>
            <div class="layui-form-item">
                <div  style="text-align: right;">
                    <a href="javascript:;" style="color: #888;" id="forgetPassword">忘记密码?</a>
                </div>
            </div>
            <div class="layui-form-item" style="text-align: center">
                <button class="layui-btn"
                        style="width: 100%;margin-bottom: 6%;font-size: 18px;border-radius: 3px;background-color: #ffced9"
                        id="changeUser" class="loginClass">登录
                </button>
            </div>


        </div>
    </div>
    <p style="color: white">Copyright &copy; 2020-<span class="year"></span>.Company Tina All </p>
</div>
</div>
<div style="display:none">
    <script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script>
</div>
<script type="text/javascript" src="/static/res/layui/layui.js"></script>
<script type="text/javascript" src="/static/res/js/login.js"></script>
<script src="/static/res/hint/js/jquery.min.js"></script>
<script src="/static/res/hint/js/message.js"></script>
<script type="text/javascript">
    $.ajaxSetup({
        complete:function(XMLHttpRequest,textStatus){
            console.log(textStatus)
            if(textStatus=="parsererror"){
                alert('未登录或登录超时。请重新登录');
                window.top.location=window.location
            } else if(textStatus=="error"){
                alert('未登录或登录超时。请重新登录');
                window.top.location=window.location
            }
        }
    })
</script>
</body>
</html>
